package main

import (
	"fmt"
	"os"

	example "06-gin/02-route-group/proto"

	"google.golang.org/protobuf/proto"
)

func main() {
	data, err := os.ReadFile("response")
	if err != nil {
		panic(err)
	}

	user := &example.User{}

	if err := proto.Unmarshal(data, user); err != nil {
		panic(err)
	}

	fmt.Println(user.Name, user.Id)
}
